package cn.xhjava.crm.workbench.service.impl;

import cn.xhjava.crm.workbench.domain.ContactsActivityRelation;
import cn.xhjava.crm.workbench.mapper.ContactsActivityRelationMapper;
import cn.xhjava.crm.workbench.service.ContactsActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Xiahu
 * @create 2023/7/20 0020
 */
@Service
public class ContactsActivityRelationServiceImpl implements ContactsActivityRelationService {

    @Autowired
    private ContactsActivityRelationMapper contactsActivityRelationMapper;

    @Override
    public int addList(List<ContactsActivityRelation> relationList) throws Exception {
        return contactsActivityRelationMapper.insertContactsActivityRelationByList(relationList);
    }

    @Override
    public int deleteContactsActivityRelationByContactsIdActivityId(ContactsActivityRelation relation) throws Exception {
        return contactsActivityRelationMapper.deleteContactsActivityRelationByContactsIdActivityId(relation);
    }
}
